package model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.json.JSONException;
import org.json.JSONObject;

public class WSP implements Comparable<WSP>{
	  public final static String key="3";
      Zom zoom;
      List<String> aa=new ArrayList<String>();
      protected Map<String,String> c=new HashMap<String,String>();
      String a,b,idk;
      
      public String getA() {
              return a;
      }
      public void setA(String a) {
              this.a = a;
      }
      public String getB() {
              return b;
      }
      public void setB(String b) {
              this.b = b;
      }
      public String getIdk() {
              return idk;
      }
      public void setZoom(Zom z)
      {
              zoom=z;
      }
      public WSP(JSONObject c)
      {
              try {
                      a=c.getString("a");
                      b=c.getString("b");
                      idk=c.getString("idk");
              } catch (JSONException e) {
                      e.printStackTrace();
              }
      }
      public WSP(){
              
      }
      protected void id()
      {
              c.put("key", key);
              c.put("ID", idk);
              c.put("URL", URL);
              c.put("TABELA",TABELA);
              c.put("POLA",POLA);
      }
      private String
              POLA=POLATABEL.WSP,
              TABELA=POLATABEL.WSP_TABELA,
              URL="a";
      public String ta()
      {
              return "wsp";
      }
      public Map<String,String> toString_()
      {
              c.put("O", "LOKALIZACJA");      
              id();
              c.put("POLA", "IDK?A?B");
              c.put("POLATABELI","IDK?A?B");
              
              return c;
      }
      @Override
      public int compareTo(WSP arg0) {
              return this.a.compareTo(arg0.a);//0;
      }
}
